package channelService

var (
	service *channelService
)

func Exchange(deviceName string, send interface{}, timeout int) (interface{}, error) {
	return service.exchange(deviceName, send, timeout)
}

func Publish(deviceName string, send interface{}, timeout int) error {
	return service.publish(deviceName, send, timeout)
}

func init() {
	service = &channelService{}
}
